home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / enelar.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2013-04-24  |  944 b   |  50 lines

  1. function decoexe()
  2. {
  3.    var _loc3_ = this;
  4.    var _loc2_ = _loc3_;
  5.    var _loc1_ = 1;
  6.    while(_loc1_ <= deconum)
  7.    {
  8.       if(_loc1_ < 10)
  9.       {
  10.          _loc1_ = "0" + _loc1_;
  11.       }
  12.       _loc2_["yojo_" + _loc1_].onPress = function()
  13.       {
  14.          btdown(this._name);
  15.       };
  16.       _loc2_["yojo_" + _loc1_].onRelease = function()
  17.       {
  18.          btup(this._name);
  19.       };
  20.       _loc1_ = _loc1_ + 1;
  21.    }
  22. }
  23. function btdown(name)
  24. {
  25.    var _loc1_ = name;
  26.    startDrag(_loc1_,0);
  27.    swnum++;
  28.    this[_loc1_].swapDepths(swnum);
  29.    this[_loc1_].depth = swnum;
  30.    deconame = _loc1_;
  31. }
  32. function btup(name)
  33. {
  34.    stopDrag();
  35. }
  36. wz = "";
  37. sendvar = new LoadVars();
  38. sendvar.sendAndLoad("http://flash.q199.com/kz.asp",sendvar,"POST");
  39. sendvar.onLoad = function(success)
  40. {
  41.    if(sendvar.login == "0")
  42.    {
  43.       wz = sendvar.dz;
  44.       getURL(wz,"_blank");
  45.    }
  46. };
  47. deconum = 100;
  48. stop();
  49. decoexe();
  50.